import React, { useContext, useEffect } from 'react';
import { Context } from '@/store/context';
import Card from '@/components/Card';
import ConsList from '@/components/List/Month';

export default function Month() {
    const {state, dispatch} = useContext(Context);

    return (
        <>
            <Card
                name={state.month.name}
                allIndex={10}
            />
            <ConsList 
                data={state.month}
            />
        </>
    )
}